All Functions of Week 4

log

{base}

log (default base = e)

glm

{base}

Fits generalized linear models

quantile

{stats}

Obtain empirical quantiles of a vector

nobs

{stats}

Return the number of observations in a model object

factor

{base}

Create factor variables

binomial

{base}

Family argument in glm()

mutate

{dplyr}

Create new variables

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

summary

{base}

Obtain summary statistics or detailed regression output

median

{stats}

Get median of a vector

max

{base}

Get maximum of a vector

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

setwd

{base}

Set Working Directory

rm

{base}

Remove objects

mean

{base}

Get mean of a vector

colMeans

{base}

Computes the means of each column of a numeric matrix or data frame

sd

{stats}

Get standard deviation of a vector

sim_slopes

{interactions}

Perform simple slopes analysis for interaction effects.

min

{base}

Get minimum of a vector

seq

{base}

Create a sequence

complete.cases

{stats}

Find Complete Cases

predict

{stats}

Generate predicted values from model objects

filter

{dplyr}

Filter out rows of a data frame according to logical vector

ifelse

{base}

Return a or b depending on the value of test

c

{base}

Combine values/vectors into a vector

factor

{base}

Create a factor

is.na

{base}

Check if a value is NA/elements of vector are NA

scale_color_manual

{ggplot2}

Manually sets the colours used in a ggplot color scale to user-specified values

lm

{stats}

Fit linear models using least squares

library

{base}

Load an R package

The end!